/* model */
import Field from "@model/entity/Field";
/* util */
import { randomString } from 'pub-bbx-utils';

const FormTitleSettingTitleNameField: Field = {
  defaultValue: null,
  displayName: "标题",
  fieldName: "titleName",
  formType: "text",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 0,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  maxlength: 100,
  placeHolder: "建议20字以内",
  setting: {},
}

const FormTitleSettingTypeField: Field = {
  defaultValue: null,
  displayName: "关联",
  fieldName: "type",
  formType: "select",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 0,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "请选择",
  setting: {},
}

const FormTitleSettingLinkField: Field = {
  defaultValue: null,
  displayName: "PASS类型",
  fieldName: "linkUrl",
  formType: "select",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 0,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "请选择",
  setting: {},
}

const FormTitleSettingCustomLinkField: Field = {
  defaultValue: null,
  displayName: "自定义链接",
  fieldName: "linkUrl",
  formType: "text",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 0,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "请输入以http/https开头的链接",
  setting: {},
}

export {
  FormTitleSettingTitleNameField,
  FormTitleSettingLinkField,
  FormTitleSettingTypeField,
  FormTitleSettingCustomLinkField
}

export default {
  FormTitleSettingTitleNameField,
  FormTitleSettingLinkField,
  FormTitleSettingTypeField,
  FormTitleSettingCustomLinkField
}